//
//  PersonAbstractModelContent.m
//  __PRODUCTNAME__
//
//  Created by Hanlingyu on 16/09/16
//  Copyright (c) ltq. All rights reserved.
//

#import "PersonAbstractModelContent.h"
#import "PersonAbstractModelAlbum.h"
#import "PersonAbstractModelStarredchannels.h"
#import "PersonAbstractModelSpecialrelation.h"
@implementation PersonAbstractModelContent

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"album"]) {
        _album = [PersonAbstractModelAlbum modelWithDic:value];
    } else if ([key isEqualToString:@"starredChannels"]) {
        _starredChannels = [PersonAbstractModelStarredchannels modelWithDic:value];
    } else if ([key isEqualToString:@"specialRelation"]) {
        _specialRelation = [PersonAbstractModelSpecialrelation modelWithDic:value];
    }
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    [super setValue:value forUndefinedKey:key];
    if ([key isEqualToString:@"id"]) {
        _ID = value;
    }
}

@end
